package com.dd.cloud.user.entity.patient;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "用户评价表")
public class PatientUserAppraise {

    /**
     * 数据表说明:主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;


    /**
     * 医生id
     */
    @Column(comment = "医生id")
    private Integer doctorId;

    /**
     * 用户id
     */
    @Column(comment = "用户id")
    private Integer userId;

    /**
     * 患者id
     */
    @Column(comment = "患者id")
    private String medId;

    /**
     * 问诊订单id
     */
    @Column(comment = "问诊订单id")
    private Integer consultId;

    /**
     * 医生评分
     */
    @Column(comment = "医生评分",defaultValue = "0")
    private Integer num;


    /**
     * 标签
     */
    @Column(comment = "标签逗号分割", length = 256)
    private String tag;


    /**
     * 评价内容
     */
    @Column(comment = "评价内容", type = MySqlTypeConstant.TEXT)
    private String content;

    /**
     * 评价时间
     */
    @Column(comment = "创建时间", defaultValue = "now()")
    private LocalDateTime createDate;

}
